package junit;

import javax.sql.DataSource;

import org.springframework.jdbc.datasource.DriverManagerDataSource;

import dal.DataAccessor;
import dal.IAppDataAccessor;

public class TestHelper {

	public static IAppDataAccessor getAppDataAccess() {
		//return new DataAccessor(getDataSource());
		return null;
	}

	private static DataSource getDataSource() {
		DriverManagerDataSource ds = new DriverManagerDataSource();
		ds.setDriverClassName("com.mysql.jdbc.Driver");
		ds.setUrl("jdbc:mysql://localhost");
		ds.setUsername("root");
		ds.setPassword("providence");
		return ds;
	}

}
